-
Notifications
You must be signed in to change notification settings - Fork 16.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChibiOS: Support formatting of microSD card #19182
Conversation
8340ba9
to
2f0272e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this something that might want an autotest?
Thanks @tridge, this is very useful in some cases! |
notes from call:
|
bd6284a
to
708337f
Compare
changed to only allow format when disarmed, and only enable on boards with SDMMC interface |
708337f
to
b5ebfea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on CubeOrange.
Documentation will be important as it won't be available on many flight controllers.
This supports formatting of the microSD card on ChibiOS. The card is then automatically remounted.
This only works on SDC sdcard interfaces (so not on MMC SPI interfaces) as the GET_BLOCK_SIZE ioctl() only works on SDC
MAVProxy implementation here: ArduPilot/MAVProxy#961
using command "formatsdcard"
cost is about 5k on boards where this is enabled